package cn.iocoder.yudao.module.aiposter.queue;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;

@Target({METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Pooled {
    boolean async() default true;
    long timeout() default 500;
    String executor() default "cwToolExecutor";
    PoolOverAct poolOverAct() default PoolOverAct.REJECT;

    enum PoolOverAct{
        REJECT, BLOCK, RUN, NEW_THREAD;
    }
}
